//
//  IntrouduceViewController.m
//  Newproject3
//
//  Created by rimi on 16/9/28.
//  Copyright © 2016年 Liang. All rights reserved.
//

#import "IntrouduceViewController.h"

@interface IntrouduceViewController ()
@property (nonatomic,strong) UIImageView *imageView;
@property (nonatomic,strong) UILabel *lableView;
@end

@implementation IntrouduceViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    [self.view addSubview:self.imageView];
    [self.view addSubview:self.lableView];
}


-(UIImageView *)imageView{
    if (!_imageView) {
        _imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 44, self.view.bounds.size.width, 300)];
        _imageView.image = [UIImage imageNamed:self.dic[@"image"]];
    }
    return _imageView;
}
-(UILabel *)lableView{
    if (!_lableView) {
        _lableView = [[UILabel alloc] initWithFrame:CGRectMake(0, 344, self.view.bounds.size.width, self.view.bounds.size.height - 300)];
        _lableView.text = self.dic[@"lable2"];
        _lableView.textAlignment = NSTextAlignmentCenter;
        _lableView.numberOfLines = 0;
        _lableView.font = [UIFont systemFontOfSize:16];
    }
    return _lableView;
}

- (NSDictionary *)dic{
    if (!_dic) {
        _dic = [NSDictionary dictionary];
    }
    return _dic;
}

@end
